<?php

session_start();
include_once '../control/conexao.php';
include_once '../model/menu.class.php';
include_once '../model/menuDAO.class.php';

$menu = new menu();
$menu->menu_nome = utf8_decode($_POST['nome']);
$menu->menu_link = utf8_decode($_POST['link']);
$menu->menu_icone = utf8_decode($_POST['icone']);

$menuDAO = new menuDAO();
$menuDAO->insere($menu);